package DP.strategy.common;

import DP.strategy.common.stra.Strategy;

/**
 * @author msi
 * 封装角色
 */
public class Context {
    private Strategy strategy=null;

    public Context(Strategy strategy){
        this.strategy=strategy;
    }

    public void doAnything(){
        this.strategy.doSomething();
    }
}
